
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <unistd.h>
#include <strings.h>
#include <time.h>

#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>

#define LOG_MAGIC   9876

#define LOG_EMERG		0
#define LOG_ALERT		1
#define LOG_CRIT		2
#define LOG_ERR			3
#define LOG_WARNING		4
#define LOG_NOTICE		5
#define LOG_INFO		6
#define LOG_DEBUG		7


struct log_msg_t
{
	unsigned short magic;
	char label[32];
	unsigned short level;
	char place[128];
	char msg[256];
};

